home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / misc / ispell-3.001 / ispell-3~ / ispell-3.1 / languages / francais / Makefile < prev   
Makefile  |  1994-11-02  |  5KB  |  152 lines

  1. #
  2. # $Id: Makefile,v 1.8 1994/08/31 05:58:58 geoff Exp $
  3. #
  4. # Copyright 1993, Geoff Kuenning, Granada Hills, CA
  5. # All rights reserved.
  6. #
  7. # Redistribution and use in source and binary forms, with or without
  8. # modification, are permitted provided that the following conditions
  9. # are met:
  10. #
  11. # 1. Redistributions of source code must retain the above copyright
  12. #    notice, this list of conditions and the following disclaimer.
  13. # 2. Redistributions in binary form must reproduce the above copyright
  14. #    notice, this list of conditions and the following disclaimer in the
  15. #    documentation and/or other materials provided with the distribution.
  16. # 3. All modifications to the source code must be clearly marked as
  17. #    such.  Binary redistributions based on modified source code
  18. #    must be clearly marked as modified versions in the documentation
  19. #    and/or other materials provided with the distribution.
  20. # 4. All advertising materials mentioning features or use of this software
  21. #    must display the following acknowledgment:
  22. #      This product includes software developed by Geoff Kuenning and
  23. #      other unpaid contributors.
  24. # 5. The name of Geoff Kuenning may not be used to endorse or promote
  25. #    products derived from this software without specific prior
  26. #    written permission.
  27. #
  28. # THIS SOFTWARE IS PROVIDED BY GEOFF KUENNING AND CONTRIBUTORS ``AS IS'' AND
  29. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  30. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  31. # ARE DISCLAIMED.  IN NO EVENT SHALL GEOFF KUENNING OR CONTRIBUTORS BE LIABLE
  32. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  33. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  34. # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  35. # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  36. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  37. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  38. # SUCH DAMAGE.
  39. #
  40. # This makefile is an example of how you might write a makefile for a
  41. # simple language which has only a single dictionary available.  For
  42. # an example of a complex makefile, look at the makefile for English.
  43. #
  44. # $Log: Makefile,v $
  45. # Revision 1.8  1994/08/31  05:58:58  geoff
  46. # Create directories before installing into them.
  47. #
  48. # Revision 1.7  1994/02/22  06:09:14  geoff
  49. # Add SHELLDEBUG.
  50. #
  51. # Revision 1.6  1994/02/07  06:07:57  geoff
  52. # Add a dummy else clause to shell if-test for Ultrix
  53. #
  54. # Revision 1.5  1994/01/25  07:12:44  geoff
  55. # Get rid of all old RCS log lines in preparation for the 3.1 release.
  56. #
  57. #
  58.  
  59. SHELL = /bin/sh
  60. MAKE = make
  61.  
  62. CONFIG        =    ../../config.sh
  63. PATHADDER    =    ../..
  64. BUILDHASH    =    ../../buildhash
  65. UNSQ        =    ../../unsq
  66. FIX8BIT        =    ../fix8bit
  67.  
  68. #
  69. # The following variables make it easy to adapt this Makefile to
  70. # numerous languages.
  71. #
  72. LANGUAGE    =    francais
  73. DICTIONARY    =    $(LANGUAGE).sml
  74. HASHFILE    =    $(LANGUAGE).hash
  75.  
  76. #
  77. # The following variables may be overridden by the superior Makefile,
  78. # based on the LANGUAGES variable in config.X.
  79. #
  80. AFFIXES    =    $(LANGUAGE).aff
  81.  
  82. #
  83. #    Set this to "-vx" in the make command line if you need to
  84. #    debug the complex shell commands.
  85. #
  86. SHELLDEBUG = +vx
  87.  
  88. all:    $(HASHFILE)
  89.  
  90. install: all $(CONFIG)
  91.     @. $(CONFIG); \
  92.       set -x; \
  93.       [ -d $$LIBDIR ]  ||  (mkdir $$LIBDIR; chmod 755 $$LIBDIR); \
  94.       cd $$LIBDIR; rm -f $(LANGUAGE).aff $(HASHFILE)
  95.     @. $(CONFIG); \
  96.       set -x; \
  97.       cp $(LANGUAGE).aff $(HASHFILE) $$LIBDIR
  98.     @. $(CONFIG); \
  99.       set -x; \
  100.       cd $$LIBDIR; \
  101.       chmod 644 $(LANGUAGE).aff $(HASHFILE)
  102.  
  103. $(HASHFILE):    $(BUILDHASH) $(AFFIXES) $(DICTIONARY)
  104.     rm -f $(HASHFILE)
  105.     $(BUILDHASH) $(DICTIONARY) $(AFFIXES) $(HASHFILE)
  106.  
  107. $(AFFIXES):    $(LANGUAGE).7bit $(FIX8BIT)
  108.     $(FIX8BIT) -8 < $(LANGUAGE).7bit > $(AFFIXES)
  109.  
  110. $(LANGUAGE)-alt.aff:    $(LANGUAGE)-alt.7bit $(FIX8BIT)
  111.     $(FIX8BIT) -8 < $(LANGUAGE)-alt.7bit > $(LANGUAGE)-alt.aff
  112.  
  113. $(FIX8BIT):    ../fix8bit.c
  114.     cd ..; $(MAKE) fix8bit
  115.  
  116. #
  117. #    The following dependency can be executed when ispell is unpacked,
  118. #    to unpack the dictionaries.
  119. #
  120. unpack:    $(AFFIXES)
  121.  
  122. $(UNSQ):
  123.     set +e; \
  124.     set $(SHELLDEBUG); \
  125.     if [ ! -x $(UNSQ) ]; \
  126.     then \
  127.         set -e; \
  128.         cd ../..; \
  129.         $(MAKE) unsq; \
  130.     else \
  131.         : ; \
  132.     fi
  133.  
  134. clean:
  135.     rm -f core *.hash *.stat *.cnt
  136.  
  137. #
  138. #    The following target is used in the English makefile, and is
  139. #    required to be present in all other language Makefiles as
  140. #    well, even though it doesn't have to do anything in those
  141. #    directories.
  142. #
  143. kitclean:
  144.  
  145. #
  146. #    The following target is used in the English makefile, and is
  147. #    required to be present in all other language Makefiles as
  148. #    well, even though it doesn't have to do anything in those
  149. #    directories.
  150. #
  151. dictclean:
  152.